public class yiqing {
    public static int getlevel(int data){
        int level = 0;

        if(data>2000){
            level = 1;
        }else if(data>=1300){
            level = 2;
        }else if(data>=800){
            level = 3;
        }else if(data>=500){
            level = 4;
        }else if(data>=200){
            level = 5;
        }else if(data>=50){
            level = 6;
        }else if(data>=0){
            level = 7;
        }else{
            throw new IllegalArgumentException();
        }
        return level;
    }
}
